﻿using System.Diagnostics;
using System.IO;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Navigation;
using AutoLoL.Logic.Parsers;
using AutoLoL.Logic.Utils;
using AutoLoL.Shared;

namespace AutoLoL.Tabs
{
    /// <summary>
    /// Interaction logic for HelpTab.xaml
    /// </summary>
    public partial class HelpTab : UserControl
    {
        public HelpTab()
        {
            InitializeComponent();

            try { MatthewBorder.Background = new ImageBrush(ImageParser.FileToBitmapImage(Path.Combine(Constants.IMAGES_DIRECTORY, "Misc", "matthew.jpg"))); }
            catch { }

            try { TijsBorder.Background = new ImageBrush(ImageParser.FileToBitmapImage(Path.Combine(Constants.IMAGES_DIRECTORY, "Misc", "tijs.jpg"))); }
            catch { }
        }


        private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
        {
            Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
            e.Handled = true;
        }
    }
}
